function info(buttons, h, w){
	var infoMsg="";
	$(".info-msg").each(function(){
		infoMsg = infoMsg+"<li>";
		infoMsg = infoMsg+$(this).val();
		infoMsg = infoMsg+"</li>";
		return true;
	});
	if(infoMsg.length){
		infoMsg = "<ul>"+infoMsg+"</ul>";
		$("#dialog-message-innerText").html(infoMsg);
		$("#dialog-message").dialog({
				resizable : true,
				height : h,
				width : w,
				modal : true,	
				buttons : buttons,
				open: function(){
		            jQuery('.ui-widget-overlay').bind('click',function(){
		                jQuery('#dialog-message').dialog('close');
		            })
		        }
		});
	}	
}
function confirmarAccion(buttons, h, w) {
	$("#dialog-confirm").dialog({
		resizable : false,
		height : h,
		width : w,
		modal : true,
		open: function (event, ui) {
				$('#dialog-confirm').css('overflow', 'hidden'); //esta linea oculta el scroll
			  },
	    buttons : buttons,
		open: function(){
            jQuery('.ui-widget-overlay').bind('click',function(){
                jQuery('#dialog-confirm').dialog('close');
            })
        }
	});
}
